package com.beamfield.dao.process;

import com.beamfield.model.ProcYhsg;
import com.beamfield.modelVo.ProcYhsgVo;
import com.beamfield.modelVo.YhsgVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
public interface ProcYhsgMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ProcYhsg record);

    int insertSelective(ProcYhsg record);

    ProcYhsg selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ProcYhsg record);

    int updateByPrimaryKey(ProcYhsg record);

    YhsgVo selectByProjectPart(@Param("noticeId") String noticeId, @Param("value") String value, @Param("beamId") Long beamId);

    List<ProcYhsgVo> selectByNoticeId(@Param("noticeId") String noticeId, @Param("beamId") Long beamId);

    int countByNoticeId(@Param("noticeId") String noticeId,@Param("projectPartId") String projectPartId);

    int isSameYhTime(@Param("noticeId") String notice_id,@Param("yh_time") Date yh_time);
}